<template>
	<view>
		<view class="tops">
			<text>可用余额</text>
			<view>￥80000</view>
			<!-- 菜单 -->
			<u-row class="tool-quick">
				<u-col :span="6" >
					<image src="/static/index/cz.png" mode="widthFix" class="btn"></image>
				</u-col>
				<u-col :span="6" >
					<image src="/static/index/tx.png" mode="widthFix" class="btn"></image>
				</u-col>
			</u-row>
		</view>
		<view class="lists" v-for="item in 4">
			<u-row gutter="16">
				<u-col span="2">
					<u-image width="50rpx" height="50rpx" src="/static/index/icon.png"></u-image>
				</u-col>
				<u-col span="9">
					<text @click="logout()">退出</text>
				</u-col>
				<u-col span="1" @click="logout()">
					》
				</u-col>
			</u-row>
		</view>
	</view>
</template>

<script>
	export default {
		name:"user",
		data() {
			return {
				
			};
		},
		methods:{
			//退出登录
			logout(){
				uni.removeStorageSync('tokens');
				uni.reLaunch({
				    url: '/pages/login/login'
				});
			}
		}
	}
</script>

<style lang="scss">
	.tops{
		background-color: #3A3A3E;
		height: 400rpx;
		text-align: center;
		color: #FFFFFF;
		padding-top: 80rpx;
		font-weight: bold;
		border-bottom: 2rpx solid #979797;
	}
	.tops view{
		margin-top: 20rpx;
		font-size: 50rpx;
	}
	.tool-quick{
		.btn{
			width: 90%;
			height: 50upx;
		}
		margin: 50upx 50upx;
	}
	.lists{
		background-color: #434655;
		color: #FFFFFF;
		margin: 20rpx 50rpx;
		padding: 40rpx;
		border-radius: 40rpx;
	}
</style>
